package com.sky.mapper;


import com.sky.anno.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    @AutoFill(OperationType.INSERT)
    void insertBatch(List<DishFlavor> flavors);

    @AutoFill(OperationType.INSERT)
    void deleteByDishId(long dishId);

    List<DishFlavor> getByDishId(Long id);

}

